﻿@model UserInfoEditModel
<script type="text/javascript">
    $(document).ready(function () {
        $('#btnSubmit').click(function () {
            $('#UserDetailForm').submit();
        });
        $('#resetForm').click(function () {
            $('#UserDetailForm')[0].reset();
        });
    });
</script>
<div class="box">
    <!-- Box Head -->
    <div class="box-head">
        <h2>
            确认要删除此用户吗？</h2>
    </div>
    <!-- End Box Head -->
    <div class="table">
        @if (Model.UserName == null || Model.ID == null)
        {
            <div class="empty">
                没有记录</div>
        }
        else
        {
            using (Html.BeginForm("UserConfirmDelete", "User", FormMethod.Post, new { ID = "UserDetailForm" }))
            {
                @Html.ValidationSummary(true)
                <!-- Form -->
                <table class="tableForForm">
                    <tr>
                        <td align="right">
                            用户名：
                        </td>
                        <td>@Html.HiddenFor(model => model.ID)
                            @Html.DisplayFor(model => model.UserName)
                        </td>
                        <td align="right">
                            用户姓名：
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.FamilyName)
                        </td>
                        <td align="right">
                            Email：
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.Email)
                        </td>
                    </tr>
                </table>
            }
        }
    </div>
    <div class="buttons">
        <a href="@Url.Action("Index", "User")" class="cancel-button"><span>返回</span></a>
        <a href="#" class="submit-button" id="btnSubmit" style="margin-left: 10px;"><span>确认删除</span></a>
    </div>
</div>
<!-- End Box -->
<!-- End Content -->
@section SideBar  {
    <div class="box">
        <!-- Box Head -->
        <div class="box-head">
            <h2>
                用户权限管理</h2>
        </div>
        <!-- End Box Head-->
        <div class="box-content">
            <a href="@Url.Action("UserRoleList", "User")" class="add-button"><span>用户组管理</span></a>
            <div class="cl">
                &nbsp;</div>
            <a href="@Url.Action("Index", "User")" class="add-button"><span>用户列表</span></a>
            <div class="cl">
                &nbsp;</div>
        </div>
    </div>
    <!-- End Box -->
}
